<?php

namespace Lmkj\Controller;
use Think\Controller;

class CommonController extends  Controller{
	
	public function __construct(){
		parent::__construct();
		$sessionData = session('userName');

//		$arr = split('&', $_SERVER['REQUEST_URI']);
//		$this->assign("action",ACTION_NAME);  //分配下action
//		$this->assign('controller',CONTROLLER_NAME); //分配下controller

		if( !isset($sessionData->user)  || !isset($sessionData->uid) ){
			header("Content-type:text/html;charset=utf-8;");	
			redirect(U('Lmkj/Login/index'), 1, '页面跳转中...');
		}
	}
	
//	public  function _empty(){
//
//  	header("Location: /404.html");
//
//  }
	
	
}
